<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.sun.corba.se.impl.javax.rmi.CORBA.Util"%>
<%@page import="com.sun.xml.internal.bind.v2.schemagen.xmlschema.Import"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:set var="webctx" value="${pageContext.request.contextPath}" />
<html xmlns="http://www.w3.org/1999/xhtml" class="hb-loaded">
<head>
<meta charset="utf-8" />
<title>个人中心 - 订单中心</title>
<link href="${webctx}/resources/css/same.css?v=1.3.7.2" type="text/css"
	rel="stylesheet" />
<link href="${webctx}/resources/css/member.css?v=1.3.6.0"
	type="text/css" rel="stylesheet" />

<spring:url value="/resources/js/jquery.js" var="jquery" />
<script src="${jquery}"></script>

<spring:url value="/resources/js/index.js?virsion=1.3.7.2" var="indexJs" />
<script src="${indexJs}"></script>

<spring:url value="/resources/js/member.js" var="memberJs" />
<script src="${memberJs}"></script>
<script>
        $(function () {
            $("#ctl00_content_pwd1").keypress(function () {
                var pwd1 = $("#ctl00_content_pwd1").val();
                if (pwd1.length >= 5 && pwd1.length < 9) {
                    $("#rou").addClass('mb_red-color');
                    $("#zhong").removeClass('mb_red-color');
                    $("#strong").removeClass('mb_red-color');
                }
                if (pwd1.length >= 9 && pwd1.length < 12) {
                    $("#rou").addClass('mb_red-color');
                    $("#zhong").addClass('mb_red-color');
                    $("#strong").removeClass('mb_red-color');

                }
                if (pwd1.length >= 12 && pwd1.length < 20) {
                    $("#rou").addClass('mb_red-color');
                    $("#zhong").addClass('mb_red-color');
                    $("#strong").addClass('mb_red-color');
                }
                
            });

            $("#ctl00_content_pwd1").blur(function () {
                var pwd1 = $("#ctl00_content_pwd1").val();
                if (pwd1.length < 5 || pwd1.length > 20) {
                    $("#txtshow").text("密码长度不正确！");
                    $("#rou").removeClass('mb_red-color');
                    $("#zhong").removeClass('mb_red-color');
                    $("#strong").removeClass('mb_red-color');
                    $("#ctl00_content_pwd1").val("");
                    $("#showr").show();
                    $("#show_wrong").show();
                    return false;
                } else {
                    $("#showr").hide();
                    $("#show_wrong").hide();
                }
            });
            $("#ctl00_content_pwd2").blur(function () {
                var pwd1 = $("#ctl00_content_pwd1").val();
                var pwd2 = $("#ctl00_content_pwd2").val();
                if (pwd1 != pwd2) {
                    $("#txtwrong").text("两次密码输入不一致！");
                    $("#ctl00_content_pwd2").val("");
                    $(".againpwd").show();
                    return false;
                } else {
                    $(".againpwd").hide();
                }
            });
        });

        function check() {
            var pwd = $("#ctl00_content_pwd").val();
            var pwd1 = $("#ctl00_content_pwd1").val();
            var pwd2 = $("#ctl00_content_pwd2").val();
            if (pwd=="") {
                alert("请输入原始密码！");
                return false;
            }
            if (pwd1 == "" || pwd2 == "") {
                $("#txtwrong").text("请输入密码！");
                $(".againpwd").show();
                return false;
            }
    
            if (pwd1 != pwd2) {

                $("#txtwrong").text("两次密码输入不一致！");
                $(".againpwd").show();
                return false;
            }
        }
        

        function updatePwd() {
        	$('#updatePwd').attr('action', "updatePwd");
        	$('#updatePwd').submit();
        } 
    </script>
</head>
<body style="background-color: #F5F7F7;">
	<!--头部-->
	<div class="cmain" style="background-color: #F5F7F7;">
		<div class="headtop">
			<!--头部左边-->
			<div class="top-left fl">
				<a title="Du Du" href="hello2"> <img width="90px" alt="Du Du官网"
					src="${webctx}/resources/images/logo1.jpg" style="margin-top: -22px;">
				</a href="hello2"><span style="font-weight: bold; font-size: 40px;">用户中心</span>
			</div>
			<!--头部左边end-->
			<!--头部右边-->
			<div class="top-right fr">
				<!--登录注册-->
				<ul class="tright-ul fl">

					<div id="ctl00_ucheader_pllogin2">
						<li><a><span id="ctl00_ucheader_lit"><%=((jp.co.lkg.springsmp.common.db.dto.UserinfoDto)request.getSession().getAttribute("sessionUser")).getUsername() %></span></a></li>
						<li><a href="javascript:logout()" rel="nofollow">退出</a></li> 
						
						
					</div>
				</ul>
			</div>
			<!--头部右边end-->
		</div>
	</div>
	<!--头部end-->
	<!--导航-->
	<div class="nav">
		<div class="cmain"></div>
	</div>
	<!--导航end-->


	<script type="text/javascript">
    function logout() {
        if (window.confirm('确定退出吗？')) {

            $.get("/nAPI/QuitExit.ashx", function (data) {
                window.location.href = "/";
            });
        }
    }
</script>

	<div class="cort">

		<div class="cort">
			<div class="tobuy cmain">
				<div class="cmain mb_back">

					<div class="zbk_top spalid">
						<span id="ctl00_content_website_SiteMapPath1"><a
							href="#ctl00_content_website_SiteMapPath1_SkipLink"></a><a
							id="ctl00_content_website_SiteMapPath1_SkipLink"></a></span>
					</div>
					<div class="member_cort">

						<div class="member_cort-left fl">
						
							<div class="member_cortleft-tittle">
								<i class="mb_home"></i><a rel="nofollow"
									href="member_index.html">我的MOUMOU</a>
							</div>
						
							<ul class="member_cort-ul">
								<li>
									<h3>-订单中心-</h3>
									<ul class="member_ul-dr">
										<li id="ctl00_content_ucmemberleft_order"
											class="speacil_color"><a rel="nofollow"
											href="showorder">我的订单</a></li>
										<li id="ctl00_content_ucmemberleft_ask"><a
												rel="nofollow"
												href="showprivateorder">我的定制</a></li>
									</ul>
								</li>

								<li>
									<h3>-帐户管理-</h3>
									<ul class="member_ul-dr">
										<li id="ctl00_content_ucmemberleft_myinfo"><a
											rel="nofollow"
											href="touser?username=<%=((jp.co.lkg.springsmp.common.db.dto.UserinfoDto)request.getSession().getAttribute("sessionUser")).getUsername() %>">个人信息</a></li>
										<li id="ctl00_content_ucmemberleft_password"><a
											rel="nofollow" href="pwd">修改密码</a></li>
									</ul>
								</li>
							</ul>
						</div>

    <!--右边的主要内容-->
                <div class="member_cort-right fr">
                    <!--找回密码-->
                      <form  id="updatePwd"  method="post" action="userinfoForm" >
                    <div class="member_password">
                        <div class="member_ask-tittle">
                            <h4>
                                修改密码</h4>
                            <p>
                                为保障账户安全，建议避免使用与其他网站相同密码。</p>
                        </div>
                        <!--找回密码-->
                       <input type="hidden" name="searchDto.username" value="<%=((jp.co.lkg.springsmp.common.db.dto.UserinfoDto)request.getSession().getAttribute("sessionUser")).getUsername() %>" />
                        <div class="member_password-find">
                            <div class="person-cort_left-write">
                                <span>原始密码：</span>
                                <input type="password" class="write_text" id="ctl00_content_pwd" name="searchDto.userpwd">
                          </div>
                            <div style="float: left" class="person-cort_left-write person-cort_left-password">
                                <span>新密码：</span>
                                <input type="password" class="write_text" id="ctl00_content_pwd1" name="searchDto.newPwd">
                                <em id="rou">弱</em> <em id="zhong">中</em> <em id="strong">强</em> 
                               
                            </div>
                            <div style="display: none;" id="showr" class="person-cort_left-write">
                                <i id="pwdwrong" class="writer_wrong pwd"></i><em class="pwd" id="txtshow"></em>
                            </div>
                            <div style="clear: both" class="person-cort_left-write">
                                <span>确认新密码：</span>
                                <input type="password" class="write_text" id="ctl00_content_pwd2" name="">
                                <i id="wrong" style="display: none" class="writer_wrong againpwd"></i><em style="display: none" class="againpwd" id="txtwrong"></em>
                            </div>
                            
                        </div>
                        <div style="margin-left: 90px">
                                <input type="submit" style="border-style:None;" class="bt1 person-sp-button" id="btnsubmit" onClick="updatePwd()" value="立即提交" name="ctl00$content$btnsubmit"></div>
                        <!--找回密码end-->
                    </div>
                    </form>
                    <!--找回密码end-->
                </div>
                <!--右边的主要内容end-->

					
				</div>

			</div>
		</div>

	</div>


	<div class="model" id="model">
		<div class="Prompt" id="Prompt"></div>
		<span id="log_uid" style="display: none"></span> <span id="log_uname"
			style="display: none"></span> <span id="log_orderid"
			style="display: none"></span> <span id="log_price"
			style="display: none"></span>

	</div>
	<script src="http://wpa.b.qq.com/cgi/wpa.php" charset="utf-8"
		type="text/javascript"></script>
	<!--客服(2014年8月29日)-->
	<div style="display: none" class="Ffloat_kf">
		<div class="fkf_top">
			<div style="cursor: pointer; display: none;" id="bridgehead"></div>
			<div id="BizQQWPA"></div>
			<div onClick="showModel(modelsever);" style="cursor: pointer;"
				class="qq_hover" id="qqTalk_head"></div>
			<div id="BizQQWPAB" class="sh"></div>

			<div id="bdBridge">
				<a href="javascript:NTKF.im_openInPageChat()"> <img width="75"
					height="37" src="resources/images/zx.jpg"></a>
			</div>

		</div>
		<div class="fkf_bottom">
			<img width="92" height="82" alt="Darry Ring 官方微信"
				src="resources/images/to_erwei.jpg"> <a href="#"> <img
				width="92" height="26" src="resources/images/db.jpg"></a>
		</div>
	</div>

	<!--返回顶部-->
	<div class="comeback"></div>
	<!--返回顶部end-->
	<spring:url value="/resources/js/orderlist.js" var="orderlistJs" />
	<script src="${orderlistJs}"></script>

	<script type="text/javascript" language="javascript">
		function deleteOrder(orderid) {
		 if (confirm("确定要取消订单吗?")) {
			window.location.href = "/member/myorder.aspx?action=delete&orderid=" + orderid;    
			 }									        
		}
	</script>

	<script type="text/javascript">
    function showbox(id) {
        getQeestion(id);
        for (var i = 1; i <= 8; i++) {
            if (i == id) {
                showdiv(id);
            }
            else {
                hidediv(i);
            }
        } 
    }
    function contenttxt(id, sid) {
        for (var i = 1; i <= 7; i++) {
            if (i == id) {
                showtxt(id, sid);
            }
            else {
                hidetxt(i, sid);
            }
        }


    }
    function showtxt(id, sid) {
        var objtitle = $("#content_title" + id + "_" + sid);

        if (objtitle.css("display") == "none") {
            objtitle.show("fast");
        }
        else {

            hidetxt(id, sid);
        }
        //$("#"+id).show("fast");
    }
    function hidetxt(id, sid) {
        var objtitle = $("#content_title" + id + "_" + sid);
        objtitle.hide("fast");
    }
    function hidediv(id) {
        $("#box" + id).hide("fast");

        $("#li" + id).css({ "font-size": "14px", "color": "#7d7d7d" });
    }

    function showdiv(id) {
        if ($("#box" + id).css("display") == "none") {
            $("#box" + id).show("fast");
            $("#li" + id).css({ "font-size": "18px", "color": "#000000" });
        }

    }

</script>
	<script type="text/javascript">
    function showMask() {
        $("#masks").css("height", $(document).height());
        $("#masks").css("width", $(document).width());
        $("#masks").fadeIn();
    }
    function showModel(divName) {
        showMask();
       /* var top = ($(window).height() - $(divName).height()) / 5;
        var left = ($(window).width() - $(divName).width()) / 2;
        var scrollTop = $(document).scrollTop();
        var scrollLeft = $(document).scrollLeft();*/
        $(divName).fadeIn();
    }
    function CloseMaskser() {

        $("#modelsever").fadeOut("slow");
        $("#masks").fadeOut("slow");
        $("#mask").fadeOut("slow");
    }

</script>


</body>
</html>